package be.tihh.mgmt.gui.tree;

import be.tihh.mgmt.gui.icontreenode.IconNode;

import javax.swing.*;

/**
 * Created with IntelliJ IDEA.
 * User: Johan Claes
 * Date: 3/06/13
 * Time: 17:35
 * To change this template use File | Settings | File Templates.
 */
public class TreeMenuItem extends JMenuItem {

    IconNode selectedNode;

    public TreeMenuItem(String s, Icon icon, IconNode selectedNode) {
        super(s, icon);
        this.selectedNode = selectedNode;
    }

    public IconNode getSelectedNode() {
        return selectedNode;
    }

    public void setSelectedNode(IconNode selectedNode) {
        this.selectedNode = selectedNode;
    }
}
